<template>
  <el-table :data="tableData" border style="width: 100%">
    <el-table-column prop="date" label="日期" width="180"></el-table-column>
    <el-table-column prop="name" label="姓名" width="180"></el-table-column>
    <el-table-column prop="address" label="地址"></el-table-column>
  </el-table>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
      ],
      params:{
          query:'',
          pagenum:1,
          pagesize:10
      }
    };
  },
  methods: {},
  created() {
    this.$http.get('users?query='+this.params.query+'&pagenum='+this.params.pagenum+'&'+'pagesize='+this.params.pagesize).then(res => {
      console.log(res);
    });
  }
};
</script>

<style>
</style>
